3.219 \(\int \sec ^{\frac{3}{2}}(c+d x) \sqrt{a+a \sec (c+d x)} \, dx\)

Optimal. Leaf size=72 \[ \frac{a \sin (c+d x) \sec ^{\frac{3}{2}}(c+d x)}{d \sqrt{a \sec (c+d x)+a}}+\frac{\sqrt{a} \sinh ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{d} \]

[Out]

(Sqrt[a]*ArcSinh[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/d + (a*Sec[c + d*x]^(3/2)*Sin[c + d*x])/(d*
Sqrt[a + a*Sec[c + d*x]])

________________________________________________________________________________________

Rubi [A]  time = 0.112704, antiderivative size = 72, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.12, Rules used = {3803, 3801, 215} \[ \frac{a \sin (c+d x) \sec ^{\frac{3}{2}}(c+d x)}{d \sqrt{a \sec (c+d x)+a}}+\frac{\sqrt{a} \sinh ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{d} \]

Antiderivative was successfully verified.

[In]

Int[Sec[c + d*x]^(3/2)*Sqrt[a + a*Sec[c + d*x]],x]

[Out]

(Sqrt[a]*ArcSinh[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/d + (a*Sec[c + d*x]^(3/2)*Sin[c + d*x])/(d*
Sqrt[a + a*Sec[c + d*x]])

Rule 3803

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[(-2*b*d
*Cot[e + f*x]*(d*Csc[e + f*x])^(n - 1))/(f*(2*n - 1)*Sqrt[a + b*Csc[e + f*x]]), x] + Dist[(2*a*d*(n - 1))/(b*(
2*n - 1)), Int[Sqrt[a + b*Csc[e + f*x]]*(d*Csc[e + f*x])^(n - 1), x], x] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a
^2 - b^2, 0] && GtQ[n, 1] && IntegerQ[2*n]

Rule 3801

Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[(-2*a*Sq
rt[(a*d)/b])/(b*f), Subst[Int[1/Sqrt[1 + x^2/a], x], x, (b*Cot[e + f*x])/Sqrt[a + b*Csc[e + f*x]]], x] /; Free
Q[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && GtQ[(a*d)/b, 0]

Rule 215

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[(Rt[b, 2]*x)/Sqrt[a]]/Rt[b, 2], x] /; FreeQ[{a, b},
 x] && GtQ[a, 0] && PosQ[b]

Rubi steps

\begin{align*} \int \sec ^{\frac{3}{2}}(c+d x) \sqrt{a+a \sec (c+d x)} \, dx &=\frac{a \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d \sqrt{a+a \sec (c+d x)}}+\frac{1}{2} \int \sqrt{\sec (c+d x)} \sqrt{a+a \sec (c+d x)} \, dx\\ &=\frac{a \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d \sqrt{a+a \sec (c+d x)}}-\frac{\operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{x^2}{a}}} \, dx,x,-\frac{a \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}\\ &=\frac{\sqrt{a} \sinh ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}+\frac{a \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d \sqrt{a+a \sec (c+d x)}}\\ \end{align*}

Mathematica [A]  time = 0.220046, size = 75, normalized size = 1.04 \[ \frac{a \tan (c+d x) \left (\sqrt{-(\sec (c+d x)-1) \sec (c+d x)}+\sin ^{-1}\left (\sqrt{1-\sec (c+d x)}\right )\right )}{d \sqrt{1-\sec (c+d x)} \sqrt{a (\sec (c+d x)+1)}} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Sec[c + d*x]^(3/2)*Sqrt[a + a*Sec[c + d*x]],x]

[Out]

(a*(ArcSin[Sqrt[1 - Sec[c + d*x]]] + Sqrt[-((-1 + Sec[c + d*x])*Sec[c + d*x])])*Tan[c + d*x])/(d*Sqrt[1 - Sec[
c + d*x]]*Sqrt[a*(1 + Sec[c + d*x])])

________________________________________________________________________________________

Maple [B]  time = 0.215, size = 186, normalized size = 2.6 \begin{align*} -{\frac{ \left ( -1+\cos \left ( dx+c \right ) \right ) \cos \left ( dx+c \right ) }{2\,d \left ( \sin \left ( dx+c \right ) \right ) ^{2}} \left ( \arctan \left ({\frac{\sqrt{2} \left ( \cos \left ( dx+c \right ) +1+\sin \left ( dx+c \right ) \right ) }{4}\sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}} \right ) \sqrt{2}\cos \left ( dx+c \right ) -\arctan \left ({\frac{\sqrt{2} \left ( \cos \left ( dx+c \right ) +1-\sin \left ( dx+c \right ) \right ) }{4}\sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}} \right ) \sqrt{2}\cos \left ( dx+c \right ) +2\,\sin \left ( dx+c \right ) \sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}} \right ) \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{-1} \right ) ^{{\frac{3}{2}}}\sqrt{{\frac{a \left ( \cos \left ( dx+c \right ) +1 \right ) }{\cos \left ( dx+c \right ) }}}{\frac{1}{\sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)^(3/2)*(a+a*sec(d*x+c))^(1/2),x)

[Out]

-1/2/d*(-1+cos(d*x+c))*(arctan(1/4*2^(1/2)*(-2/(cos(d*x+c)+1))^(1/2)*(cos(d*x+c)+1+sin(d*x+c)))*2^(1/2)*cos(d*
x+c)-arctan(1/4*2^(1/2)*(-2/(cos(d*x+c)+1))^(1/2)*(cos(d*x+c)+1-sin(d*x+c)))*2^(1/2)*cos(d*x+c)+2*sin(d*x+c)*(
-2/(cos(d*x+c)+1))^(1/2))*cos(d*x+c)*(1/cos(d*x+c))^(3/2)*(a*(cos(d*x+c)+1)/cos(d*x+c))^(1/2)/(-2/(cos(d*x+c)+
1))^(1/2)/sin(d*x+c)^2

________________________________________________________________________________________

Maxima [B]  time = 2.83542, size = 894, normalized size = 12.42 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^(3/2)*(a+a*sec(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

-1/4*(4*sqrt(2)*cos(3/2*arctan2(sin(d*x + c), cos(d*x + c)))*sin(2*d*x + 2*c) - 4*sqrt(2)*cos(1/2*arctan2(sin(
d*x + c), cos(d*x + c)))*sin(2*d*x + 2*c) - (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)
*log(2*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 + 2*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 + 2*s
qrt(2)*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c))) + 2*sqrt(2)*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c))) +
 2) + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*log(2*cos(1/2*arctan2(sin(d*x + c), c
os(d*x + c)))^2 + 2*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 + 2*sqrt(2)*cos(1/2*arctan2(sin(d*x + c), c
os(d*x + c))) - 2*sqrt(2)*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c))) + 2) - (cos(2*d*x + 2*c)^2 + sin(2*d*x
+ 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*log(2*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 + 2*sin(1/2*arctan2(si
n(d*x + c), cos(d*x + c)))^2 - 2*sqrt(2)*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c))) + 2*sqrt(2)*sin(1/2*arct
an2(sin(d*x + c), cos(d*x + c))) + 2) + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*log
(2*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 + 2*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 - 2*sqrt(
2)*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c))) - 2*sqrt(2)*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c))) + 2)
- 4*(sqrt(2)*cos(2*d*x + 2*c) + sqrt(2))*sin(3/2*arctan2(sin(d*x + c), cos(d*x + c))) + 4*(sqrt(2)*cos(2*d*x +
 2*c) + sqrt(2))*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c))))*sqrt(a)/((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)
^2 + 2*cos(2*d*x + 2*c) + 1)*d)

________________________________________________________________________________________

Fricas [B]  time = 1.81148, size = 814, normalized size = 11.31 \begin{align*} \left [\frac{\sqrt{a}{\left (\cos \left (d x + c\right ) + 1\right )} \log \left (\frac{a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - \frac{4 \,{\left (\cos \left (d x + c\right )^{2} - 2 \, \cos \left (d x + c\right )\right )} \sqrt{a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt{\cos \left (d x + c\right )}} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + \frac{4 \, \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt{\cos \left (d x + c\right )}}}{4 \,{\left (d \cos \left (d x + c\right ) + d\right )}}, \frac{\sqrt{-a}{\left (\cos \left (d x + c\right ) + 1\right )} \arctan \left (\frac{2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right ) + \frac{2 \, \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt{\cos \left (d x + c\right )}}}{2 \,{\left (d \cos \left (d x + c\right ) + d\right )}}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^(3/2)*(a+a*sec(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

[1/4*(sqrt(a)*(cos(d*x + c) + 1)*log((a*cos(d*x + c)^3 - 7*a*cos(d*x + c)^2 - 4*(cos(d*x + c)^2 - 2*cos(d*x +
c))*sqrt(a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d*x + c)/sqrt(cos(d*x + c)) + 8*a)/(cos(d*x + c)^3 + c
os(d*x + c)^2)) + 4*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d*x + c)/sqrt(cos(d*x + c)))/(d*cos(d*x + c) +
 d), 1/2*(sqrt(-a)*(cos(d*x + c) + 1)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x +
 c))*sin(d*x + c)/(a*cos(d*x + c)^2 - a*cos(d*x + c) - 2*a)) + 2*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d
*x + c)/sqrt(cos(d*x + c)))/(d*cos(d*x + c) + d)]

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)**(3/2)*(a+a*sec(d*x+c))**(1/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \sec \left (d x + c\right ) + a} \sec \left (d x + c\right )^{\frac{3}{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^(3/2)*(a+a*sec(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(a*sec(d*x + c) + a)*sec(d*x + c)^(3/2), x)